<?php 
class Mtext  extends sElement {

	public function __construct($name, $label, $value, $more) {
		$this->setName($name);
		$this->setlabel($label);
		$this->setValue($value);
	}

	public function getHTML() {
		$m = array();

		$v = $this->getValue();
		if(!empty($v)) {
			$m[] = 'value="'.htmlspecialchars($v, null, Mform::$encoding).'"';
		}

		return '<input type="text" name="'.$this->getName().'" '.implode(' ', $m).' />';
	}
}
?>